package com.wmm.fast.main.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.wmm.common.bean.ResponseResultDTO;
import com.wmm.common.bean.user.UserDTO;

/**   
 * @ClassName:  UserInterface   
 * @Description:TODO UserServcie feign调用
 * @author: wangzun
 * @date:   2018年3月20日 下午11:03:35     
 */
@FeignClient(value = "user-service",fallback=UserInterfaceImpl.class)
public interface UserInterface {
	
	@RequestMapping(value = "/api/user/auto/find/{userId}", method = RequestMethod.POST)
	ResponseResultDTO<UserDTO> find(@PathVariable(value = "userId")String userId);
	
}
